home *** CD-ROM | disk | FTP | other *** search
/ Aminet 6 / Aminet 6 - June 1995.iso / Aminet / text / edit / DebugIT21.lha / DebugIT / auto.ged < prev    next >
Encoding:
Text File  |  1995-01-31  |  1.1 KB  |  36 lines

  1. /* $VER: 1.0 DebugIT AutoConfig macro */
  2.  
  3. OPTIONS RESULTS                             /* enable return codes     */
  4.  
  5. if (LEFT(ADDRESS(), 6) ~= "GOLDED") then    /* not started by GoldEd ? */
  6.     address 'GOLDED.1'
  7.  
  8. 'LOCK CURRENT'                              /* lock GUI, gain access   */
  9. OPTIONS FAILAT 6                            /* ignore warnings         */
  10. SIGNAL ON SYNTAX                            /* ensure clean exit       */
  11.  
  12. /* ------------------------ INSERT YOUR CODE HERE: ------------------- */
  13.  
  14. 'REQUEST BODY="A new API client has been installed.|Do you want to have this client added|to the list of active clients ?" BUTTON="_START NEW CLIENT|no"'
  15.  
  16. if (RESULT = 1) then do
  17.  
  18.     'API ADD="GOLDED:API/DebugIT/DebugIT"'
  19.  
  20.     'REQUEST HIDE=FALSE BODY="GoldED''s preferences have been changed.|Save new configuration ?" BUTTON="_SAVE|no"'
  21.  
  22.     if (RESULT = 1) then
  23.         'PREFS SAVE'
  24. end
  25.  
  26. /* ---------------------------- END OF YOUR CODE --------------------- */
  27.  
  28. 'UNLOCK' /* VERY important: unlock GUI */
  29. EXIT
  30.  
  31. SYNTAX:
  32.  
  33. SAY "Sorry, error line" SIGL ":" ERRORTEXT(RC) ":-("
  34. 'UNLOCK'
  35. EXIT
  36.